package com.redrose.audioandvideo.camera2;


import android.Manifest;
import android.os.Bundle;
import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.redrose.audioandvideo.R;
import com.redrose.audioandvideo.databinding.ActivityCamera2Binding;
import com.redrose.audioandvideo.ui.activitys.BaseActivity;

@Route(path = "/activity/video2")
public class Camera2Activity extends BaseActivity<ActivityCamera2Binding> {

    @Override
    public void initData() {
        mBinding.setCamera2Handler(new Camera2Handler());
    }

    @Override
    public int setLayout() {
        return R.layout.activity_camera2;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    public class Camera2Handler {
        public void onClickView(View v) {
            int id = v.getId();
            switch (id) {
                case R.id.btn_cameraTest:

                    break;
                case R.id.tv_take_video:

                    break;
                default:
                    break;
            }
        }

    }

    @Override
    protected void onPause() {
        super.onPause();
        mBinding.gl2Surfaceview.onPause();
    }
}
